cmake_minimum_required(VERSION 3.10)

include(${CMAKE_CURRENT_LIST_DIR}/../../ossLib/ossLib/env.cmake)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

link_directories(${CMAKE_CURRENT_LIST_DIR}/libs/${os}/${platform})

add_definitions(-D_USRDLL)

# 指定动态库输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG 	${CMAKE_CURRENT_LIST_DIR}/bin/${os}/${platform}/debug/drvs)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE  ${CMAKE_CURRENT_LIST_DIR}/bin/${os}/${platform}/Release/drvs)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG 	${CMAKE_CURRENT_LIST_DIR}/bin/${os}/${platform}/debug/drvs)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE  ${CMAKE_CURRENT_LIST_DIR}/bin/${os}/${platform}/Release/drvs)

#去掉debug的d后缀
set(CMAKE_DEBUG_POSTFIX "")

set(LABEL_DRV_LIBS_D labelDriverd )
set(LABEL_DRV_LIBS labelDriver)
#请在依赖本cmake的地方增加如下语句，放在add_executable后面
#target_link_libraries(${PROJECT_NAME} PRIVATE 
#				optimized labelDriver labelUi
#				debug labelDriverd labelUid)






